﻿namespace Webinator.Condition
{
    using Base;
    using Webinator.Enums;

    /// <summary>
    /// Condition object.
    /// </summary>
    internal class WindowAppears : ConditionBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WindowAppears"/> class.
        /// </summary>
        public WindowAppears()
        {
            Value = string.Empty;
        }

        /// <summary>
        /// Gets or sets whether to search by title or url.
        /// </summary>
        public SwitchBy SwitchBy { get; set; }

        /// <summary>
        /// Gets or sets the value to look for, if set to null then it looks for any change.
        /// </summary>
        public string Value { get; set; }

        /// <summary>
        /// Gets or sets a value indicating how to match the <c>LookForText</c>.
        /// </summary>
        public Comparison Comparison { get; set; }
    }
}
